<template>
  <div class="app-sidebar">
    <app-menu />

    <div class="app-exit" >
      <img src="@/assets/touxiang.png" style="width: 24px; height: 24px;margin: 0 12px 12px 12px;cursor: pointer;" @click="selectMenu({ value: 'user' }, 0)" />
      <!-- <div style="text-align: center;margin-top: 12px;cursor: pointer;" @click="userStore.logout()">退出</div> -->
    </div>
  </div>
</template>

<script setup>
const userStore = useUserStore()
const sotre = useAppStore()
const { menuIndex, selectMenu } = toRefs(sotre)
</script>

<style lang="scss" scoped>
.app-sidebar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-between;
  padding: 12px 0;
}

.app-exit {
  display: flex;
  flex-direction: column;
  align-content: center !important;
  font-size: 14px;
  color: #fff;
}
</style>